19. Database Implementation - Writing 3

Take a look at the Firebase documentation for "Save Data on Android". Based on this guide and the code that you have already completed for getting database references, which of the following would add the new message data for friendlyMessage to the database? Once you've got the correct answer add it to your code!

SOLUTION: mMessagesDatabaseReference.push().setValue(friendlyMessage);